/* 视频头部样式 - 全屏显示 */
.video-header {
    position: relative;
    width: 100%;
    height: 100vh; /* 占据整个视口高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /*padding: 0;*/
    padding-bottom: 100px;
}

/* 确保视频以1920x1080尺寸正确显示 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保视频覆盖整个区域 */
    z-index: 1;
}

/*视频遮罩*/
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);/*视频遮罩参数20%*/
    z-index: 2;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: white;
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

.header-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    letter-spacing: 3px;
    opacity: 0.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.btn-banner{
    display: inline-block;
    padding: 5px 12px;
    background: #a10d0b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.btn-banner:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 声音控制样式 - 放在视频中间底部 */
.volume-control-center {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border-radius: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.8);
}

.volume-control-center:hover {
    background: rgba(0,0,0,0.8);
    transform: translateX(-50%) scale(1.1);
}

.volume-icon-center {
    color: white;
    font-size: 28px;
}

/* 响应式设计 - 修复移动端居中问题 */
@media (max-width: 768px) {
    .video-header {
        height: 50vh; /* 减小移动端视频高度为视口的50% */
        min-height: 300px;
    }
    
    .header-content {
        /* 重置并确保移动端完全居中 */
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        text-align: center;
        display: block;
    }
    
    .header-content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .btn-banner {
        padding: 8px 20px;
        font-size: 0.95rem;
        text-align: center;
        display: inline-block;
        margin: 0 auto;
    }
    
    .volume-control-center {
        width: 45px;
        height: 45px;
        bottom: 20px;
    }
    
    .volume-icon-center {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .video-header {
        height: 40vh; /* 进一步减小小屏幕的视频高度 */
        min-height: 250px;
    }
    
    .header-content {
        /* 确保移动端完全居中 */
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        text-align: center;
        display: block;
    }
    
    .header-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .btn-banner {
        padding: 7px 18px;
        font-size: 0.9rem;
        text-align: center;
        display: inline-block;
        margin: 0 auto;
    }
    
    .volume-control-center {
        width: 40px;
        height: 40px;
        bottom: 15px;
    }
    
    .volume-icon-center {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .video-header {
        height: 35vh; /* 超小屏幕进一步减小高度 */
        min-height: 200px;
    }
    
    .header-content {
        /* 确保移动端完全居中 */
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        text-align: center;
        display: block;
    }
    
    .header-content p {
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .btn-banner {
        padding: 6px 15px;
        font-size: 0.85rem;
        text-align: center;
        display: inline-block;
        margin: 0 auto;
    }
    
    .volume-control-center {
        width: 35px;
        height: 35px;
        bottom: 10px;
    }
    
    .volume-icon-center {
        font-size: 16px;
    }
}